#!/bin/bash

rm ./docker/mysql/data/README.md

quiet='-q'

ps aux | grep hsob | awk '{print $2}' | xargs kill -9

docker-compose down
docker-compose up -d

sleep 1m

if [ $# -ne 0 ]
then
    if [ $1 = $quiet ]
    then
        ./gradlew clean bootRun --warning-mode all > hsob.log 2>&1 &
        echo 'Please see hsob.log'

    else
        ./gradlew clean bootRun --warning-mode all
    fi
else
    ./gradlew clean bootRun --warning-mode all
fi



